package com.imti.mall.product.controller;





import com.github.pagehelper.PageHelper;
import com.imti.mall.common.Api.CommonPage;
import com.imti.mall.common.Api.CommonResult;
import com.imti.mall.product.service.PmsBrandService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;


/**
 * 品牌表(PmsBrand)表控制层
 *
 * @author makejava
 * @since 2023-02-28 09:30:13
 */
@RestController
@RequestMapping("/api/v1/product/brand")
public class PmsBrandController  {
    /**
     * 服务对象
     */
    @Resource
    private PmsBrandService pmsBrandService;

    @PostMapping("/findPmsBrand")
    public CommonResult fetchBrandList(Integer pageSize,Integer pageNum){
        PageHelper.startPage(pageNum,pageSize);
        return CommonResult.success(CommonPage.restPage(pmsBrandService.list()));
    }


}

